package cn.com.bob.messageboard.utils;

import java.util.HashMap;
import java.util.Map;


public class   FieldMappingConfig {

    private static final Map<String, String> FIELD_MAPPING = new HashMap<>();

    static {
        // Excel字段名映射到数据库字段名
        FIELD_MAPPING.put("留言人", "username");
        FIELD_MAPPING.put("留言时间", "create_time");
        FIELD_MAPPING.put("留言内容", "content");


    }

    public static String getDatabaseFieldName(String excelFieldName) {
        return FIELD_MAPPING.get(excelFieldName);
    }
}
